package day07.poker;

public class Poker {
	Card[] cards;

	public Poker() {
		this.cards = new Card[54];
		String[] colors = { "红桃", "黑桃", "方块", "梅花" };
		String[] pointers = { "A", "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K" };

		int index = 0;
		for (int i = 0; i < colors.length; i++) {
			for (int j = 0; j < pointers.length; j++) {
				Card c = new Card(colors[i], pointers[j]);
				//				c.color = colors[i];
				//				c.pointer = pointers[j];
				this.cards[index++] = c;
			}
		}

		this.cards[52] = new Card("", "大王");
		//		this.cards[52].color = "";
		//		this.cards[52].pointer = "大王";
		this.cards[53] = new Card("", "小王");
	}
}
